<?php

/**
 * @author mrHie darkbuivn@gmai.com
 * @copyright 2014
 */

class topic
{
    private $pid;
    private $uid;
    private $ptitle;
    private $pcontent;
    private $date;
    public function topic($pid,$uid,$ptitle,$pcontent,$date)
    {
        $this->pid = $pid;
        $this->uid = $uid;
        $this->ptitle = $ptitle;
        $this->pcontent = $pcontent;
        $this->date = $date;
    }
    public function getpid()
    {
        return $pid;
    }
    public function setpid($pid)
    {
        $this->pid = $pid;
    }
     public function getuid()
    {
        return $uid;
    }
    public function setuid($uid)
    {
        $this->uid = $uid;
    }
    public function getptitle()
    {
        return $ptitle;
    }
    public function setptitle($ptitle)
    {
       $this->ptitle = $ptitle;
    } 
    public function getpcontent()
    {
        return $pcontent;
    }
    public function setpcontent($pcontent)
    {
       $this->pcontent = $pcontent;
    } 
    public function getpdate()
    {
        return $date;
    }
    public function setpdate($date)
    {
         $this->date = $date;
    }
     public function show()
    {     
        echo $pid;
        echo $uid;
        echo $ptitle;
        echo $pcontent;
        echo $date;
    }
}

?>